import React from "react";
import Login from "./Login";
import Register from "./Register";
import { HashRouter as Router, Route, Switch } from "react-router-dom";

export default function Mine() {
  return (
    <div>
      <div>
        <a href="#/mine/login">登录|</a>
        <a href="#/mine/register">注册</a>
      </div>
      <Router>
        <Switch>
          <Route path="/mine/" component={Login} exact></Route>
          <Route path="/mine/login" component={Login}></Route>
          <Route path="/mine/register" component={Register}></Route>
        </Switch>
      </Router>
    </div>
  );
}
